package cn.dzhang.rcp.hyperbola.adapters;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import cn.dzhang.rcp.hyperbola.common.UIUtils;

public class TableViewerContentProvider implements IStructuredContentProvider {

	@Override
	public void dispose() {

	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {

	}

	@Override
	public Object[] getElements(Object inputElement) {
		IWorkbenchAdapter4 adapter4 = UIUtils.getAdapter4(inputElement);
		return adapter4 == null ? new Object[0] : adapter4
				.getElements(inputElement);
	}

}
